#! /bin/bash
selfpath=`dirname $(readlink -f $0)`

##autotools based
#./autogen.sh
#CXXFLAGS=-std=c++17 ./configure --prefix /opt/geos --enable-python
#make && sudo make uninstall && sudo rm -rf /opt/geos && sudo make install

#cmake based
mkdir -p build/
(cd build/ && cmake -DCMAKE_CXX_STANDARD:STRING=20 -DCMAKE_INSTALL_PREFIX:PATH=/opt/geos .. && sudo cmake --build . --target install)
